package com.sky.chain.model;

import java.io.Serializable;

/**
 * 商品实体类
 */
public class GoodsEntity implements Serializable {

    //编号id
    private int id;

    //商品名称
    private String shopName;

    //商品数量
    private int shopNum;

    //商品单价
    private double shopPrice;

    public GoodsEntity() {
    }

    public GoodsEntity(int id, String shopName, int shopNum, double shopPrice) {
        this.id = id;
        this.shopName = shopName;
        this.shopNum = shopNum;
        this.shopPrice = shopPrice;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public int getShopNum() {
        return shopNum;
    }

    public void setShopNum(int shopNum) {
        this.shopNum = shopNum;
    }

    public double getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(double shopPrice) {
        this.shopPrice = shopPrice;
    }

    @Override
    public String toString() {
        StringBuffer str = new StringBuffer();
        str.append("药品名：")
                .append(shopName)
                .append("，单价：")
                .append(shopPrice)
                .append("元，剩余数量：")
                .append(shopNum)
                .append("盒，截止日期：2021年1月，药品来源：护蛙制药公司");

        return str.toString();
    }
}
